package com.chagee.store.operation.server.service.biz;

import com.chagee.personnel.api.event.auth.UserAuthInfo;
import com.personnel.auth.service.PersonnelAuthService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yangyang
 * @date 2024/3/20-21:36
 **/
@Slf4j
@Service
public class UserBizService {
	@Resource
	PersonnelAuthService personnelAuthService;

   public UserAuthInfo	getUser(){
	   UserAuthInfo userAuthInfo = null;
	   try {
		    userAuthInfo = personnelAuthService.getUserAuthInfo();
	   } catch (Exception e) {
		   log.error("personnelAuthService.getUserAuthInfo() 查询人事系统异常",e);
	   }
	   return userAuthInfo;
   }
}
